| Author |
Thread Statistics | Show CCP posts - 0 post(s) |

Battle On
DaZeD and ConFuseD Sorry We're In Your Space Eh
133
|
Posted - 2014.11.13 18:52:47 -
[1] - Quote
Hi,
I've just pulled in yapeal 2.0 using composer and I wanna start using it. I created the database and setted up the config file, but i miss the documentation on how to use this library? I looked trough the github wiki but everything seems to be for 1.*... my question, is there a guide somewhere for 2.0 already? I'd love to start using this library :)
Thanks in advance, Battle On
[url=https://forums.eveonline.com/default.aspx?g=posts&t=168748&find=unread][Service] Battle On's Custom and Colored Overviews![/url]
|

Battle On
DaZeD and ConFuseD Sorry We're In Your Space Eh
133
|
Posted - 2014.11.13 19:37:26 -
[2] - Quote
Dragonaire wrote:Thought I'd documented that some where but easiest way to manually start Yapeal or use it in a crontab etc is to use bin/yapeal.php. It works basically the same as the old yapeal.php did. There are also options to call any of the per API classes directly for one-shot type needs as that was one of the planned features to be added with this rewrite.
Do you have some examplecode that can be used for certain standard calls like validating an Character Api Key with keycode and validationcode or retrieve the Charactersheet? This way its earier to understand.
[url=https://forums.eveonline.com/default.aspx?g=posts&t=168748&find=unread][Service] Battle On's Custom and Colored Overviews![/url]
|

Battle On
DaZeD and ConFuseD Sorry We're In Your Space Eh
133
|
Posted - 2014.11.17 08:44:29 -
[3] - Quote
Dragonaire wrote:Battle On - There really aren't any tutorial type docs like you are looking for. One reason for that is that I find it very hard to write anything useful to anyone new to Yapeal since I wrote 95+% of the code and have been work with it for over 6 years now. I just don't see it the way someone looking from outside does. In the past there has been a couple people that wrote about how to use the old version that I then edit and tried to maintain but so far no one has done the same thing for the current version. My suggestion on how to learn to use the individual API classes is to follow the code from bin/yapeal.php through lib/Yapeal.php and on to how the AutoMagic() calls oneShot() in the class you are interested in. It would be great if someone like you that is just learning to use Yapeal would write about it but so far no one has.
If after looking through stuff you still have questions you are welcome to ask on this thread or even contact me via E-mail etc. I'm also usually available on G-Talk and IRC when I'm at home near the computer. And for those that prefer talking to typing I can usually be talked into some voice comms as well if you really prefer that.
In other news I decided since I'm current not doing much new development work on Yapeal right now and the rate of bugs being reported is slowed down it was about time to do a tagged release so now you'll see a 2.0.0 version on GitHub and at Packagest as well if you look. I'd been thinking about doing this for at least a month but decided to wait until after Phoebe changes were merged into master and any needed fixes had been done.
As always thank you for using Yapeal, Dragonaire.
Oke ill fool around with it then and see if i can get it to work. As of the "turoial/examples", if i get it to work i'll make a simple setup guide for it so that others will have a easier way of setting it all up.
Kind Regards, Battle On
[url=https://forums.eveonline.com/default.aspx?g=posts&t=168748&find=unread][Service] Battle On's Custom and Colored Overviews![/url]
|

Battle On
DaZeD and ConFuseD Sorry We're In Your Space Eh
133
|
Posted - 2014.11.17 15:07:39 -
[4] - Quote
Oke so far i've been able to pull yapeal in using composer, setted up the database and config and managed to get the autoloading to work. Also i've tested if it worked by adding my own API key into the utilRegisteredKey table and running bin/yapeal.php in CLI and it correctly populated the database.
First, lets start with some problems i ran in to along the way:
First of all, when fetching with composer, it gives an error that "dragonrun1/file_path_normalizer" cannot be found in packagist. Probably because the version changed or something. I'd suggest looking into this. It's easily fixable by pulling it in manually, but it would be nice if it was included in de dependancy of yapeal.
Secondly, I had a hard time setting up the autoloading. In the tutorials i could find there was a UtilRegisteredKey class, which uses a keyid as parameter for its constructor, which was used for adding keys to the database. However, in 2.0.0, this class is nowhere to be found. Instead there is the bin/UtilRegisterKey class which needs and instance of PDO and in instance of CommenSqlQueries. However, i have no idea how to set these two up, since im not familliar with PDO (I'm used to using mysqli, or use a framework like Laravel which comes with eloquent, which handles everything for me) nor the CommenSqlQueries class.
It would be nice to have some kind of helper class/method that can give you these two instances based on the yapeal.yaml config file that you used earlier. This way, yapeal can live completely on its own without the user needing to make an own instance of PDO and such, but only needs to add the keys he needs and populate the database using bin/yapeal.php.
I dont know if you already have such class or method, i looked through the files and couldnt find anything like it. If you have, or have some example code how to make those instances yourself, that would be very helpful!
Kind Regards, Battle On
[url=https://forums.eveonline.com/default.aspx?g=posts&t=168748&find=unread][Service] Battle On's Custom and Colored Overviews![/url]
|

Battle On
DaZeD and ConFuseD Sorry We're In Your Space Eh
133
|
Posted - 2014.11.19 19:36:14 -
[5] - Quote
Ty for the helpful example, this makes things alot more clearer. I've just started from scratch again and saw that you could have a config folder witin the root of you application. However, it doesnt detect the yapeal.yaml file i have in there. I'm using a fresh install of laravel so my directory structure looks like this:
laravel/ __app/ __config/ ____yapeal.yaml __bootstrap/ __public/ __vendor/ ____composer/ ____yapeal/ ______yapeal/ ________config/ __________yapeal.yaml ____autoload.php
pretty much how its descriped in README.md. However, it doesnt wanna use the yapeal.yaml file thats in laravel/config/yapeal.yaml
Is this feature no longer supported or is this a clear bug?
[url=https://forums.eveonline.com/default.aspx?g=posts&t=168748&find=unread][Service] Battle On's Custom and Colored Overviews![/url]
|

Battle On
DaZeD and ConFuseD Sorry We're In Your Space Eh
133
|
Posted - 2014.11.20 09:40:40 -
[6] - Quote
Dragonaire wrote:https://github.com/Dragonrun1/yapeal/issues/83 Pushed an update that should work now if you can give it a try Battle On and let me know if it seems to work for you.
Sweet, i'll test it out asap!
Dragonaire wrote:Sorry I didn't have it implemented before but in the thousand other things that went into re-writing Yapeal it just fell through the cracks 
No worries man, its just a convenience for me because in my production envirenment im doing a composer update each time i push to the server, therefor yapeal.yaml in the vendor directory is being reset, so i had to manually override it.
[url=https://forums.eveonline.com/default.aspx?g=posts&t=168748&find=unread][Service] Battle On's Custom and Colored Overviews![/url]
|

Battle On
DaZeD and ConFuseD Sorry We're In Your Space Eh
133
|
Posted - 2014.11.20 18:48:20 -
[7] - Quote
Dragonaire wrote:Battle On - it's set in Yapeal::wire() if it notices any 'vendor/' directory in the path.
thats probably the reason why its not set then. Yapeal::wire() is not called when i (for example) call "php bin/yc D:I". i tried echoing or var_dumping it, but it doesnt get into printed. However, like i said in my previous post, when i try dumping it in the Wiring class at the wireConfiguration() (where you set the path to the overriding config/yapeal.yaml file), i get the output that its undefined.
[url=https://forums.eveonline.com/default.aspx?g=posts&t=168748&find=unread][Service] Battle On's Custom and Colored Overviews![/url]
|
| |
|